package cn.hznc.domain.entity;

import cn.hutool.db.DaoTemplate;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * @Author：Administrator
 * @Date：2023/12/1 10:15
 */
@Getter
@Setter
@Table(name = "t_program_duration_time")
@TableName(value = "t_program_duration_time")
public class ProgramDurationTimeEntity{

    /**
     * 主键id
     */
    @Column(name = "id",type = MySqlTypeConstant.INT,length = 11,isKey = true,isAutoIncrement = true)
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 主程序编码
     */
    @Column(name = "machine_tool_name", type = MySqlTypeConstant.VARCHAR, length = 100)
    private String machineToolName;

    /**
     * 程序名
     */
    @Column(name = "program", type = MySqlTypeConstant.VARCHAR, length = 200)
    private String program;

    /**
     * 创建时间
     */
    @Column(name = "create_time", type = MySqlTypeConstant.DATETIME)
    @TableField("create_time")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 程序持续时间
     */
    @Column(name = "time",type = MySqlTypeConstant.BIGINT , length = 20)
    @TableField("time")
    private Long time;

    /**
     * 进给速度
     */
    @Column(name = "feed_speed",type = MySqlTypeConstant.INT , length = 8)
    @TableField("feed_speed")
    private String feedSpeed;

    /**
     * 进给率
     */
    @Column(name = "feed_override",type = MySqlTypeConstant.INT , length = 8)
    @TableField("feed_override")
    private String feedOverride;

    /**
     * 进给率
     */
    @Column(name = "spindle_speed",type = MySqlTypeConstant.INT , length = 8)
    @TableField("spindle_speed")
    private String spindleSpeed;

    /**
     * 进给率
     */
    @Column(name = "from_program",type = MySqlTypeConstant.VARCHAR , length = 200)
    @TableField("from_program")
    private String fromProgram;


}
